package com.bupt.order.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/*

    {
  "filmDate": "2021-08-10",
  "filmId": "film_1",
  "hallId": "hall_1",
  "ticketsNum": 1,
  "timePeriod": "09:00",
  "userId": "2020111111"
}
 */
@Data
public class OrderDto {

    private String userId;

    private String hallId;

    private String filmId;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date filmDate;

    private String timePeriod;

    private Integer ticketsNum;


}